package com.hshx.client;

import com.hshx.pojo.Train;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "gateway",
        path = "/systemService",
        contextId = "TrainClient")
public interface TrainClient {
    @RequestMapping("/addTrain")
    boolean addTrain(Train train);
    @RequestMapping("/updateTrainState")
    boolean updateTrainState(Integer train_id,Integer train_state);
    @RequestMapping("/trainID")
    Train salaryID(Integer train_id);
    @RequestMapping("/updateTrain")
    boolean updateTrain(Train train);
}
